Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> table,th,td { border: 1px solid black; } #myTABLE { border-spacing: 2px; -webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */ animation: mymove 5s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes mymove { 50% {border-spacing: 20px;} } /* Standard syntax */ @keyframes mymove { 50% {border-spacing: 20px;} } </style> </head> <body> <p>Gradually change the border-spacing property from 2px to 20px then back:<p> <table id="myTABLE"> <tr> <th>Name</th> <th>Age</th> </tr> <tr> <td>Emil</td> <td>9</td> </tr> <tr> <td>Tobias</td> <td>7</td> </tr> <tr> <td>Linus</td> <td>2</td> </tr> </table> <p>The border-spacing is <em>animatable</em> in CSS.</p> <p><b>Note:</b> CSS Animations do not work in Internet Explorer 9 and earlier versions.</p> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_anim_border-spacing by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:51:05 GMT --> </html>
Result:
Try it Yourself - © w3schools.com